package com.lcm.openapi.core.api;

import com.lcm.openapi.core.model.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

@Data
public class Api {

    @ApiModelProperty(value = "所在包名")
    private String packageName;

    @ApiModelProperty(value = "基础url")
    private String baseUrl;

    @ApiModelProperty(value = "接口描述")
    private String tagName;

    @ApiModelProperty(value = "接口文件名")
    private String apiName;

    @ApiModelProperty(value = "接口方法")
    private List<ApiMethod> methods;

    @ApiModelProperty(value = "需要导入的包")
    private Set<String> imports = new HashSet<>();

    @ApiModelProperty(value = "依赖的请求对象")
    private List<ApiModel> requestModel = new ArrayList<>();

    @ApiModelProperty(value = "依赖的返回对象")
    private List<ApiModel> responseModel = new ArrayList<>();

}
